package cn.achao.csr.gateway.service;


import cn.achao.csr.base.exception.CaptchaException;
import cn.achao.csr.base.resp.AjaxResult;

/**
 * 验证码处理
 *
 * @author achao
 */
public interface ValidateCodeService {
    /**
     * 生成验证码
     */
    public AjaxResult createCaptcha() throws Exception;

    /**
     * 校验验证码
     */
    public void checkCaptcha(String key, String value) throws CaptchaException;
}
